package 算法.练习;

import java.util.HashMap;
import java.util.Map;

/**
 * @author:谢君臣
 * @Date:2021/7/6-15:20
 * @version:1.0
 * @function:
 */
public class TestThreadLocal {
    private static ThreadLocal<Map<String,Object>> local = new ThreadLocal<>();
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("thread",Thread.currentThread().getName());
        local.set(map);
    }

}
